package org.metasketch.graphics;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("graphic-node")
public class GraphicNode extends BaseGraphic {

	@XStreamAsAttribute
	int x = 0;

	@XStreamAsAttribute
	int y = 0;

	@XStreamAsAttribute
	int width = 80;

	@XStreamAsAttribute
	int height = 80;

	public GraphicNode() {

	}

	public GraphicNode(int x, int y, int width, int height) {
		this.x = x;
		this.y = y;
		this.width = width;
		this.height = height;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

}
